package logic;

import java.sql.SQLException;
import java.util.ArrayList;

import sql.CustomerDetails;
import sql.SuppliersDetails;


public class Customers {

	public ArrayList<String> getCustomers() throws SQLException {

		CustomerDetails sd = new CustomerDetails();
		return sd.getdetails();
	}

	public ArrayList<String> getCustomersDetails(String cusid) {
		CustomerDetails u1 = new CustomerDetails();
		return u1.getCustomerDetails(cusid);
	}

	public int adduser(ArrayList<String> cusarr) {

		CustomerDetails s = new CustomerDetails();
		
		 return s.adduser(cusarr);
	}

	public int updateCustomersDetails(ArrayList<String> arrs) {

		CustomerDetails u1 = new CustomerDetails();
		return u1.customersDetailsUpdate(arrs);
		
	}

	public int deleteCustomer(String string) {
	
		CustomerDetails s = new CustomerDetails();
		return s.deleteCustomerDB(string);
	}

	public ArrayList<String> getCustomersNamesList() {


		CustomerDetails sd = new CustomerDetails();
		return sd.getCusNamesList();
			
	}

}
